<?php

/**
 * Kumbia PHP Framework
 *
 * LICENSE
 *
 * This source file is subject to the New BSD License that is bundled
 * with this package in the file docs/LICENSE.txt.
 *
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to kumbia@kumbia.org so we can send you a copy immediately.
 *
 * @category Kumbia
 * @package Bootstrap
 * @copyright Copyright (c) 2005-2009 Andres Felipe Gutierrez (gutierrezandresfelipe at gmail.com)
 * @license New BSD License
 */

/**
 * Establece tipo de notificacion de errores
 */
error_reporting(E_ALL | E_NOTICE | E_STRICT);

/**
 * Activa el track_errors
 */
ini_alter('track_errors', true);

//Cambiar el directorio
chdir('..');

require "Autoload.php";

//Evitar el Lazy-Loading Incrementa el rendimiento
require "Library/Kumbia/Core/Core.php";
require "Library/Louder/ClusterServer/ClusterServer.php";
require "Library/Louder/ClusterConfig/ClusterConfig.php";
require "Library/Louder/ClusterRequest/ClusterRequest.php";
require "Library/Louder/ClusterNode/ClusterNode.php";
require "Library/Louder/ClusterNodeManager/ClusterNodeManager.php";
require "Library/Louder/NodeCommunicator/NodeCommunicator.php";
require "Library/Louder/NodeCommunicator/NodeCommunicatorException.php";
require "Library/Louder/MemoryRegistry/MemoryRegistry.php";
require "Library/Louder/LoadBalancer/LoadBalancer.php";

spl_autoload_register("Autoload");
ini_set('unserialize_callback_func', 'Autoload');

ClusterServer::handleRequests();

